/**
 * 
 */
package com.juliashine.web.spring.demo;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.servlet.ModelAndView;

/**
 * @author Juliashine@gmail.com 2011-5-25
 *
 */
@Controller
@RequestMapping("/channel.do")
public class ChannelController {

//	@Autowired
//  private BbtForumService bbtForumService;
	
	@RequestMapping(params = "action=list") 
    public String list() {
        
        System.out.println("list channels.");
        return "channel/list";
    }
	
	@RequestMapping(params = "action=remove") 
    public String remove() {
        
        System.out.println("remove channels.");
        return "channel/list";
    }
	
	@RequestMapping(params = "action=modify") 
    public String modify() {
        
        System.out.println("modify channels.");
        return "channel/list";
    }
	 
	@RequestMapping(params = "action=detail") 
    public String detail() {
        
        System.out.println("detail channels.");
        return "channel/list";
    }
}
